package com.cl.mybatis.learn.day19;

import org.apache.ibatis.cache.Cache;
import org.apache.ibatis.cache.impl.PerpetualCache;

public class MyCache extends PerpetualCache implements Cache {
    
    public MyCache(String id) {
        super(id);
        System.out.println("构建MyCache");
    }
    
    @Override
    public void putObject(Object key, Object value) {
        System.out.println("key的值为: " + key);
        System.out.println("value的值为: " + value);
        super.putObject(key, value);
    }
    
    @Override
    public Object getObject(Object key) {
        return super.getObject(key);
    }
    
}
